package com.hoku.auth.dao;

import com.hoku.auth.model.User;

import javax.validation.Valid;

/**
 * @author ZHUFEIFEI
 */
public interface IUserDao {

    /**
     * find by username
     * @param username
     * @return
     */
    User findByUsername(String username);

    /**
     * save user
     * @param user
     */
    void save(@Valid User user);
}
